package com.xjrsoft.module.customerTwo.EMP.price_setting.service;

import com.xjrsoft.module.customerTwo.EMP.price_setting.entity.TPriceSetting;
import com.xjrsoft.module.customerTwo.EMP.price_setting.dto.TPriceSettingListDto;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xjrsoft.common.page.PageOutput;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 *  服务类
 *
 * @author dongxinhang
 * @since 2023-07-20
 */
public interface ITPriceSettingService extends IService<TPriceSetting> {
	/**
	 * 自定义分页
	 *
	 * @param pageListDto
	 * @return
	 */
	IPage<TPriceSetting> getPageList(TPriceSettingListDto pageListDto);
	String addTPriceSetting(TPriceSetting tPriceSetting);

	boolean updateTPriceSetting(String id, TPriceSetting tPriceSetting);

	boolean delete(String ids);

	/**
	 * 获取电费单价
	 * @return
	 */
	BigDecimal getElectricityPrice();

	/**
	 * 获取冷水费单价
	 * @return
	 */
	BigDecimal getColdWaterPrice();

	/**
	 * 获取热水费单价
	 * @return
	 */
	BigDecimal getHeatWaterPrice();
}
